package com.CST.mapper.cst.cb;

import com.CST.entity.cb.RuleDirectamortization;
import com.CST.entity.cb.selectInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2021-10-27
 */
@Repository
public interface RuleDirectamortizationMapper extends BaseMapper<RuleDirectamortization> {

    List<RuleDirectamortization> getDirectaAllocation(RuleDirectamortization entity);

    List<selectInfo> getYearMonth();

    RuleDirectamortization getDirectaAllocationById(RuleDirectamortization entity);

    void addDirectaAllocation(RuleDirectamortization entity);

    void insertBatchDirectaAllocationn(List<RuleDirectamortization> list);

    void modifyDirectaAllocation(RuleDirectamortization entity);

    void batchDeleteDirectaAllocation(List<Integer> ids);

    void deleteByYearMonth(int year,int month);
}
